package com.xiaomi.by_new;

public class Order {
    private Coffee coffee;

    public Order() {
        // 直接使用new关键字创建Coffee对象
        this.coffee = new Coffee("黑咖啡");
    }

    public void placeOrder() {
        System.out.println("订单买了" + coffee.getName());
    }
}
